package Demo7;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext C=new AnnotationConfigApplicationContext("Demo7");
        DBConnect db1=C.getBean(DBConnect.class);
        System.out.println(db1);
        DBConnect db2=C.getBean(DBConnect.class);
        System.out.println(db2);

    }
}
